package it.koutifaris.travianmap.dal;

import java.net.URL;
import java.util.Date;
import java.util.List;

import android.content.Context;
import android.os.Parcelable;

public interface TravianServerService extends Closeable {

	TravianServer newServer(String server);

	List<TravianServer> listServers();

	TravianServer getServer(String server);

	TravianServer updateServer(String server, Date lastUpdate);

	boolean dropServer(Context context, TravianServer server);

	void dropAllServers(Context context);

	interface TravianServer extends Parcelable {

		URL getMapFileUrl();

		String getServerId();

		Date getLastUpdate();

	}
}
